package com.zhuang.designpattern.observer.event.listener;

import com.zhuang.designpattern.observer.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * description: MQEventListener
 * date: 2022/9/20 16:43
 * author: Zhuang
 * version: 1.0
 */
public class MQEventListener implements EventListener {

    private final Logger logger = LoggerFactory.getLogger(MQEventListener.class);

    @Override
    public void doEvent(LotteryResult result) {
        logger.info("记录用户 {} 摇号结果(MQ)：{}", result.getUId(), result.getMsg());
    }

}
